home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 6 / hsatxt.zip / HSA_ATTR.H next >
Text File  |  1988-07-02  |  3KB  |  74 lines

  1. /******************************************************************/
  2. /*                                                                */
  3. /*  H S A _ A T T R . H - Various Screen Attributes and Macro     */
  4. /*                                                                */
  5. /******************************************************************/
  6.  
  7. /******************************************************************/
  8. /*                                                                */
  9. /*        Copyright (c) Hardwood Software Associates 1988         */
  10. /*                                                                */
  11. /*                 Hardwood Software Associates                   */
  12. /*                        364 Benson Road                         */
  13. /*                     Northbridge, Ma 01534                      */
  14. /*                                                                */
  15. /******************************************************************/
  16.  
  17. /******************************************************************
  18.  *            H S A _ A T T R . H    E D I T    L O G
  19.  *
  20.  *    $Log:   D:/CRT/VCS/HSA_ATTR.H_V  $
  21.  *  
  22.  *     Rev 1.2   02 Jul 1988  7:28:38   R. Evans
  23.  *  Add MAKE_PAL
  24.  *  
  25.  *     Rev 1.1   01 May 1988 10:45:22   R. Evans
  26.  *  Remove tabs for inclusion in documentation
  27.  *  
  28.  *  Rev 1.0   30 Apr 1988 22:10:44   R. Evans
  29.  *   Initial revision.
  30.  ******************************************************************/
  31.  
  32. #ifndef HSA_ATTRIBUTES
  33. #define HSA_ATTRIBUTES
  34.                                      /* Monochrome Attributes */
  35. #define SCR_NORM    0x07             /* Normal characters */
  36. #define SCR_BOLD    0x0F             /* Bold characters */
  37. #define SCR_BLINK   0x87             /* Blinking characters */
  38. #define SCR_REVERSE 0x70             /* Reverse video characters */
  39. #define SCR_UNDER   0x01             /* Underlined characters */
  40. #define SCR_B_B     0x8F             /* Blinking bold characters */
  41. #define SCR_B_U     0x09             /* Blinking underlined characters */
  42.                                      /* Colors */
  43. #define SCR_BLACK    0x0
  44. #define SCR_BLUE     0x1
  45. #define SCR_GREEN    0x2
  46. #define SCR_CYAN     0x3
  47. #define SCR_RED      0x4
  48. #define SCR_MAGENTA  0x5
  49. #define SCR_YELLOW   0x6
  50. #define SCR_WHITE    0x7
  51.  
  52. #define SCR_INTENSE_BIT  0x08        /* Intensty bit */
  53. #define SCR_BLINK_BIT    0x80        /* Blink bit */
  54.                                      /* Create attribute byte */
  55. #define MAKE_ATTR(fore,back)  (((back)<<4) | (fore))
  56.                                      /* Reverse foreground nd background */
  57. #define REVERSE_ATTR(a)       ((a&0x80)|(a&0x08)|((a&0x07)<<4)|((a&0x70)>>4))
  58.                                      /* Create Palette Value */
  59. #define MAKE_PAL(intense,normal) ((intense<<3)|normal)
  60.                                      /* CRT states */
  61. #define MONOCHROME     0x7
  62. #define CGA            0x6
  63. #define EGA            0x10
  64.                                      /* MOUSE definitions */
  65. #define MOWS_LEFT    0               /* Left button */
  66. #define MOWS_RIGHT   1               /* Right button */
  67. #define MOWS_MIDDLE  2               /* Middle button */
  68.  
  69. #define MOWS_NO      0               /* No mouse (or driver) */
  70. #define MOWS_MICRO   2               /* Microssoft mouse installe */
  71. #define MOWS_MOUSE   3               /* Mouse Systems mouse installed */
  72. #endif
  73.  
  74.